package com.liuzu.esys.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ErrorBo {
    @ExcelProperty(value = "编号")
    private Integer id;
    @ExcelProperty(value = "错误类型")
    private String type;
    @ExcelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    @ExcelProperty(value = "失误描述")
    private String describes;
    @ExcelProperty(value = "失误级别")
    private String level;
    @ExcelProperty(value = "失误负责人")
    private String person;
    @ExcelProperty(value = "失误处分")
    private String punish;
}
